package com.efast.dmom.mgmt.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.efast.cafe.commponent.job.base.AbstractStatefulJobBean;
import com.efast.cafe.commponent.job.bean.ScheduleExecuteLog;
import com.efast.cafe.commponent.log.ext.CafeLogger;
import com.efast.cafe.commponent.log.ext.CafeLoggerFactory;
import com.efast.cafe.framework.spring.SpringContextUtils;
import com.efast.dmom.mgmt.service.les.FinishedProductJobService;

/**
 * @描述 成品入库
 * @创建人 ChenLiPeng
 * @创建时间 2018年4月23日下午3:12:33
 */
public class FinishedProductJob extends AbstractStatefulJobBean {
	
	CafeLogger log = CafeLoggerFactory.getLogger(FinishedProductJob.class);
	
	@Override
	protected void executeInternal(JobExecutionContext context,ScheduleExecuteLog cachelog) throws JobExecutionException {

		log.info("产品入库定时任务.................");
		// 成品入库信息中间表 TE_PRODUCT_INBOUND
		FinishedProductJobService finishedProductJobService = SpringContextUtils.getBean(FinishedProductJobService.class);
		finishedProductJobService.excute();
		log.info("产品入库定时任务,执行完成.................");
	}

}